package com.jy.oms.framework.asyn.task.handler;

/**
 * 任务初始化完成后置处理器
 *
 * @author liuquan
 */
public interface ITaskHandlerProcessor {

    int PROCESSOR_HIGHEST_ORDER = Integer.MIN_VALUE;

    int PROCESSOR_LOWEST_ORDER = Integer.MAX_VALUE;

    /**
     * 后置处理器优先级，越小越先执行判断
     */
    default int getProcessorOrder() {
        return PROCESSOR_HIGHEST_ORDER;
    }

    /**
     * 后置处理
     */
    void processAfterTaskHandlerInitialization();
}
